home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 May / macformat-050.iso / How-To's / Apple Script / Example script 1 / Example script 1.rsrc / TEXT_1128.txt < prev    next >
Encoding:
Text File  |  1997-02-10  |  578 b   |  9 lines

  1. Object of script: To automate the backup of all files in a chosen folder to a Stuffit Archive, using two conditions and a subroutine. The following stages are used:
  2.  
  3.     1) Choose the source folder,
  4.     2) Choose the destination folder,
  5.     3)  Make a list of the objects in the source folder,    
  6. 4) Step through each item in the list in turn,
  7. 5) If the current item is not a folder, move to the next step. Otherwise, forget this item and move on to the next.
  8. 6) If the label of the current item is 7 (counting down the menu in the Finder), call the DoStuff subroutine and stuff the file.
  9.